<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var obj1 = new Object();
        obj1.name = 'smyh';
        var obj2 = obj1;
        obj1.name = 'vae';
        console.log(obj1.name);
        console.log(obj2.name);
    </script>
</body>

</html>